import {store} from "../store/store";
import {actionCreator} from "../store/actions";
import requestAction, {logErrorAction} from "./httpAction";


function request(params, needLoading=true) {
    return requestAction(params, store.dispatch, store.getState, actionCreator, needLoading)
}

export function logError(postData) {
    logErrorAction(postData);
}
export default  request;
